package com.tau.egonetwork.gui.facebook;

import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Shell;

import com.tau.egonetwork.gui.Environment;
import com.tau.egonetwork.gui.core.ProfileEditDialog;
import com.tau.egonetwork.gui.core.ProfileTab;
import com.tau.egonetwork.profiles.MainProfile;
import com.tau.egonetwork.profiles.ProfileFile.SocialNetworks;

public class FacebookProfileTab extends ProfileTab<Long> {

	public FacebookProfileTab(MainProfile<Long> p) {
		super(p);
	}

	@Override
	protected Image getTabImage() {
		return Environment.ICON_FACEBOOK_PROFILE;
	}

	@Override
	protected ProfileEditDialog<Long> getNewProfileDialog(Shell shell) {
		return new FacebookNewProfileDialog(shell, profile);
	}

	@Override
	protected SocialNetworks getNetwork() {
		return SocialNetworks.Facebook;
	}
}
